import service from '@/utils/request'

// 查询列表
export const queryDataListApi = (dataForm: any) => {
	return service.get('/promotionTraining/list', { params: dataForm })
}
// 新增
export const saveOrSubmitApi = (dataForm: any) => {
	return service.post('/promotionTraining/saveOrSubmit', dataForm)
}
// 审批状态字典表
export const listApplyStatusApi = () => {
	return service.get('/promotionTraining/listApplyStatus')
}
// 审批
export const approvalApi = (dataForm: any) => {
	return service.post('/promotionTraining/approval', dataForm)
}
// 发布
export const publishApi = (dataForm: any) => {
	return service.post('/promotionTraining/publish', dataForm)
}
// 取消发布
export const cancelPublishApi = (dataForm: any) => {
	return service.post('/promotionTraining/cancelPublish', dataForm)
}
// 删除
export const deleteApi = (id: number) => {
	return service.get('/promotionTraining/delete/' + id)
}

// 咨询反馈apis
// 列表
export const consultReplyListApi = (dataForm: any) => {
	return service.get('/consultReply/list', { params: dataForm })
}
// 发送提醒
export const consultNoticeApi = (dataForm: any) => {
	return service.post('/consultReply/notice', dataForm)
}
// 发布/取消发布
export const consultReplyOrNoApi = (dataForm: any, type: string) => {
	return service.post('/consultReply/publish/' + type, dataForm)
}
// 获取详情数据
export const consultReplyDetailApi = (id: Number) => {
	return service.get('/consultReply/getDetail', { params: id })
}
// 回复
export const consultReplyApi = (dataForm: any) => {
	return service.post('/consultReply/reply', dataForm)
}

export const GetBzListApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/getProjectNumber', dataForm)
}
